package tv.acgn.advertisement.servicebase.factory;

import tv.acgn.advertisement.servicebase.vo.CommonResponse;

/**
 * @author : junG
 * @program : advertisement-ad-service-base-factory
 * @description : 通用服务调用响应类 工厂
 * @date : 2019-06-16 19:14
 **/

public class CommonResponseFactory {

    public static CommonResponse circuitBreakerResponse() {
        return CommonResponse
            .builder()
            .code(-1)
            .success(false)
            .messageCode("AdSys.CircuitBreaker")
            .message("服务调用失败 直接熔断")
            .build();
    }
}
